import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:patient_flutter/common/splash_top_bar.dart';
import 'package:patient_flutter/common/text_button_custom.dart';
import 'package:patient_flutter/generated/l10n.dart';
import 'package:patient_flutter/screen/login_screen/login_screen.dart';
import 'package:patient_flutter/screen/registration_screen/registration_screen.dart';
import 'package:patient_flutter/utils/color_res.dart';
import 'package:patient_flutter/utils/my_text_style.dart';

class AuthScreen extends StatelessWidget {
  const AuthScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          const SplashTopBar(),
          Column(
            children: <Widget>[
              SizedBox(height: 40),
            ],
          ),
          Text(
              S
                  .of(context)
                  .appointmentOnlineDiagnosticBookingManagementMultivendorApp,
              style: MyTextStyle.montserratBold(color: ColorRes.a1, size: 20),
              textAlign: TextAlign.center),
          Text(
            S.current.findDoctorsBookAppointmentEtc,
            style:
                MyTextStyle.montserratBold(color: ColorRes.darkGreen, size: 15),
            textAlign: TextAlign.center,
          ),
          Column(
            children: <Widget>[
              SizedBox(height: 40),
            ],
          ),
          TextButtonCustom(
            onPressed: () => Get.to(() => const RegistrationScreen()),
            title: S.of(context).register,
            titleColor: ColorRes.white,
            backgroundColor: ColorRes.crystalBlue,
          ),
          Column(
            children: <Widget>[
              SizedBox(height: 40),
            ],
          ),
          TextButtonCustom(
            onPressed: () => Get.to(() => const LoginScreen()),
            title: S.of(context).logIn,
            titleColor: ColorRes.white,
            backgroundColor: ColorRes.irishGreen,
          ),
          const Spacer(),
        ],
      ),
    );
  }
}
